#include <iostream>
#include <string>

using namespace std;

class Solution
{
public:
    
    int compare(string version1, string version2)
    {
        int i = 0, j = 0;
        int n1 = version1.size();
        int n2 = version2.size();
        while (i < n1 || j < n2)
        {
            long long num1 = 0;
            while (i < n1 && version1[i] != '.')
            {
                num1 = num1 * 10 + (version1[i] - '0');
                i++;
            }
            long long num2 = 0;
            while (j < n2 && version2[j] != '.')
            {
                num2 = num2 * 10 + (version2[j] - '0');
                j++;
            }
            if (num1 > num2)
                return 1;
            else if (num1 < num2)
                return -1;
            else
                ++i; ++j;
        }
        return 0;
    }
};
int main()
{
    string s1("0.1");
    string s2("1.1");
    Solution xz;

    int n = xz.compare(s1, s2);
    cout << n << endl;

	return 0;
}